﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Grain.Crm.DataMigrator.Infrastructure
{
    public class SearchAttribute : IBuildable
    {
        public string Name { get; set; }
        public ValueResolver Value { get; set; }

        protected SearchAttribute()
        {
        }

        public SearchAttribute(string name, ValueResolver valueResolver)
        {
            Name = name;
            Value = valueResolver;
        }

        public void Build(Builder builder)
        {
            Value.Build(builder);
        }
    }
}
